const Joi = require('@hapi/joi');
const Base = Joi.object({
  name: Joi.string().required(),
  postion: Joi.string().allow(null),
  content: Joi.array().allow(null)
}).label('Navigation').unknown(true);
exports.Base = Base
exports.Create = Base.append({}).label('NavigationCreate')
exports.Update = Base.append({
  mid: Joi.number().required().min(1).description('主键mid'),
}).label('NavigationUpdate')
exports.Default = Base.append({
  mid: Joi.number().required().min(1).description('主键mid'),
  createdAt: Joi.date().allow(null).description('创建时间'),
  updatedAt: Joi.date().allow(null).description('更新时间')
}).label('NavigationDefault')